package com.zeyi.blog.social.github;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.zeyi.blog.social.ThirdUser;
import lombok.Data;

/**
 * @author 黎先森
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GithubUser implements ThirdUser {
    //id
    private String id;
    //登录名
    private String login;
    //头像
    private String avatarUrl;

    @Override
    public String getUsername() {
        return login;
    }

    @Override
    public String getAvatar() {
        return avatarUrl;
    }

    @Override
    public String getProviderId() {
        return "github";
    }
}
